package cn.kgc.service;

import cn.kgc.utils.PagedGridResult;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.kgc.entity.DataDictionary;
import java.util.List;


/**
 * @author k
 */
public interface DataDictionaryService extends IService<DataDictionary> {

    PagedGridResult  page(int pageIndex,int pageSize,String typeName,String itemKey);

    /**
     * 根据id删除数据字典项
     */
    boolean deleteById(String id);

    /**
     * 根据字典项的类型编码查询字典项的内容
     */
    List<DataDictionary> queryDataDictionaryByType(String type);

    /**
     * 根据字典项的类型编码查询字典项的内容
     */
    List<DataDictionary> queryDataDictionaryByTypeAndItemKey(List<String> itemKeys);
}